package lab04.test03;

/**
 * Created by admin on 2017/12/19.
 */
public class SimpleThread extends Thread {
    public SimpleThread(String name)  {
        setName(name);


    }
    public void run() {
        int i=0;
    while(i++ <5) {
        try{
            System.out.print(getName()+"  ");

            //Thread.sleep(1000);

    }
    catch(Exception e){
        e.printStackTrace();
        }
    }
    }
}

